package com.ruoyi.report_hntjg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 钢筋位置及保护层厚度试验检测记录-详情业务对象 report_hntjg_gjbhcjlb_ba_detail
 *
 * @author tll
 * @date 2024-08-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ReportHntjgGjbhcjlbBaDetailBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long detailId;

    /**
     * 主表id
     */
    @NotNull(message = "主表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long excelId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;



    /**
     * 实测值1
     */
    @NotNull(message = "实测值1不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal shicz1;

    /**
     * 实测值2
     */
//    @NotNull(message = "序号2不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal shicz2;

    /**
     * 类型 baohc 保护层 gangj 钢筋
     */
    @NotNull(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

}
